import request from '@/utils/request'

// 查询待签合同列表
export function listContractpending(query) {
  return request({
    url: '/supply/contractpending/list',
    method: 'get',
    params: query
  })
}

// 查询待签合同详细
export function getContractpending(contractId) {
  return request({
    url: '/supply/contractpending/' + contractId,
    method: 'get'
  })
}

// 新增待签合同
export function addContractpending(data) {
  return request({
    url: '/supply/contractpending',
    method: 'post',
    data: data
  })
}

// 修改待签合同
export function updateContractpending(data) {
  return request({
    url: '/supply/contractpending',
    method: 'put',
    data: data
  })
}

// 删除待签合同
export function delContractpending(contractId) {
  return request({
    url: '/supply/contractpending/' + contractId,
    method: 'delete'
  })
}
